package hotel.rmi.to;

import java.io.Serializable;

public class Room implements Serializable {
	int id;
	
	int freeCount;
	
	int price;	
	
	public Room(int id, int free_count, int price) {
		super();
		this.id = id;
		this.freeCount = free_count;
		this.price = price;
	}

	public int getFreeCount() {
		return freeCount;
	}

	public void book(int amount) {
		this.freeCount -= amount;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}
	
	
}
